#pragma once

#include "p2.h"
#include "SymbolEventSink.h"
#include <string>
using namespace std;
class CSymbolInfo;
class CEventManager;
class CGomSymbolReceiver
{
public:
	CGomSymbolReceiver();
	~CGomSymbolReceiver();

	CSymbolEventSink m_PriceSink;
	CSymbolEventSink m_QuoteSink;
	CSymbolEventSink m_LastTickSink;
	IGxServer*      m_Server;
	string m_SymbolCode;
	void AdviseEvent();
	void UnadviseEvent();

	void RefreshPrice(bool a_RealTime);
	void RefreshQuote(bool a_RealTime);
	void RefreshTick();

	CSymbolInfo* m_pSymbol;

	CEventManager* m_pEventMgr;
};

